package file_io;

import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;

public class Print {
    public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException {
        PrintStream ps = new PrintStream("src/test.txt", "UTF-8");
        ps.print("helloPrintStream学习");
        ps.print(new Men("zcjj",19,100));
        ps.close();
//        PrintWriter pw = new PrintWriter("src/test.txt");
//        pw.print(new Men("zcj",19,100));
//        pw.print("你好呀");
//        pw.close();
    }
}
